<h1>Listing restaurants</h1>

<table>
  <tr>
    <th>ID</th>
    <th>Name</th>
    <th>Rate</th>
    <th>Descr</th>
    <th>Cuisine</th>
    <th>Phone</th>
    <th>Email</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @restaurants.each do |restaurant| %>
  <tr>
    <td><%= restaurant.id %></td>
    <td><%= restaurant.name %></td>
    <td><%= restaurant.score %></td>
    <td><%= restaurant.descr %></td>
    <td><%= restaurant.cuisine %></td>
    <td><%= restaurant.phone %></td>
    <td><%= restaurant.email %></td>
    <td><%= link_to 'Show', restaurant %></td>
    <td><%= link_to 'Edit', edit_restaurant_path(restaurant) %></td>
    <td><%= link_to 'Destroy', restaurant, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Restaurant', new_restaurant_path %>
